/**
 * 
 */
package com.lx.helloworld.eureka.client;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/* author:tracy.bai
date:2018年10月18日 下午3:47:16
 **/
/**
 * @author tracy.bai
 *
 */

@SpringBootApplication
@EnableEurekaClient
@RestController
public class EurekaClientApplication {
	  public static void main(String[] args) {
		     SpringApplication.run(EurekaClientApplication.class, args);
		 }

		 @Value("${server.port}")
		 String port;
		 @RequestMapping("/")
		 public String home() {
		     return "hello world from port " + port;  
		     
		 }

		 @RequestMapping("/home2")
		 public String home2() {
		     return "hello world from port home2 " + port;  
		     
		 }

}
